package com.qsbg.entity.vo;

public enum ResultStatusEnum {


    /**
     * 错误状态以_ERROR结尾，msg是错误信息
     */
    SUCCESS(200,"sussess!"),
    FAIL(201,"fail!"),
    PARAM_ERROR( 202, "参数不正确"),
    SERVICE_ERROR(203, "服务异常"),
    DATA_ERROR(204, "数据异常")
    ;


    private final Integer code;
    private final String msg;

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    private ResultStatusEnum(Integer code, String msg){
        this.code = code;
        this.msg = msg;
    }

}
